package net.office.bean;

import java.util.ArrayList;
import java.util.List;

public class StaffMailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StaffMailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStaffMailIdIsNull() {
            addCriterion("staff_mail_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdIsNotNull() {
            addCriterion("staff_mail_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdEqualTo(Integer value) {
            addCriterion("staff_mail_Id =", value, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdNotEqualTo(Integer value) {
            addCriterion("staff_mail_Id <>", value, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdGreaterThan(Integer value) {
            addCriterion("staff_mail_Id >", value, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_mail_Id >=", value, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdLessThan(Integer value) {
            addCriterion("staff_mail_Id <", value, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_mail_Id <=", value, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdIn(List<Integer> values) {
            addCriterion("staff_mail_Id in", values, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdNotIn(List<Integer> values) {
            addCriterion("staff_mail_Id not in", values, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_mail_Id between", value1, value2, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffMailIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_mail_Id not between", value1, value2, "staffMailId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNull() {
            addCriterion("staff_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNotNull() {
            addCriterion("staff_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIdEqualTo(Integer value) {
            addCriterion("staff_Id =", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("staff_Id <>", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThan(Integer value) {
            addCriterion("staff_Id >", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_Id >=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThan(Integer value) {
            addCriterion("staff_Id <", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_Id <=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIn(List<Integer> values) {
            addCriterion("staff_Id in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("staff_Id not in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_Id between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_Id not between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffNoIsNull() {
            addCriterion("staff_no is null");
            return (Criteria) this;
        }

        public Criteria andStaffNoIsNotNull() {
            addCriterion("staff_no is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNoEqualTo(String value) {
            addCriterion("staff_no =", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotEqualTo(String value) {
            addCriterion("staff_no <>", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoGreaterThan(String value) {
            addCriterion("staff_no >", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoGreaterThanOrEqualTo(String value) {
            addCriterion("staff_no >=", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLessThan(String value) {
            addCriterion("staff_no <", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLessThanOrEqualTo(String value) {
            addCriterion("staff_no <=", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLike(String value) {
            addCriterion("staff_no like", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotLike(String value) {
            addCriterion("staff_no not like", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoIn(List<String> values) {
            addCriterion("staff_no in", values, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotIn(List<String> values) {
            addCriterion("staff_no not in", values, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoBetween(String value1, String value2) {
            addCriterion("staff_no between", value1, value2, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotBetween(String value1, String value2) {
            addCriterion("staff_no not between", value1, value2, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNull() {
            addCriterion("staff_name is null");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNotNull() {
            addCriterion("staff_name is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNameEqualTo(String value) {
            addCriterion("staff_name =", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotEqualTo(String value) {
            addCriterion("staff_name <>", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThan(String value) {
            addCriterion("staff_name >", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("staff_name >=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThan(String value) {
            addCriterion("staff_name <", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThanOrEqualTo(String value) {
            addCriterion("staff_name <=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLike(String value) {
            addCriterion("staff_name like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotLike(String value) {
            addCriterion("staff_name not like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameIn(List<String> values) {
            addCriterion("staff_name in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotIn(List<String> values) {
            addCriterion("staff_name not in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameBetween(String value1, String value2) {
            addCriterion("staff_name between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotBetween(String value1, String value2) {
            addCriterion("staff_name not between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentIsNull() {
            addCriterion("staff_department is null");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentIsNotNull() {
            addCriterion("staff_department is not null");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentEqualTo(String value) {
            addCriterion("staff_department =", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentNotEqualTo(String value) {
            addCriterion("staff_department <>", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentGreaterThan(String value) {
            addCriterion("staff_department >", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("staff_department >=", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentLessThan(String value) {
            addCriterion("staff_department <", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentLessThanOrEqualTo(String value) {
            addCriterion("staff_department <=", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentLike(String value) {
            addCriterion("staff_department like", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentNotLike(String value) {
            addCriterion("staff_department not like", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentIn(List<String> values) {
            addCriterion("staff_department in", values, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentNotIn(List<String> values) {
            addCriterion("staff_department not in", values, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentBetween(String value1, String value2) {
            addCriterion("staff_department between", value1, value2, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentNotBetween(String value1, String value2) {
            addCriterion("staff_department not between", value1, value2, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffPostIsNull() {
            addCriterion("staff_post is null");
            return (Criteria) this;
        }

        public Criteria andStaffPostIsNotNull() {
            addCriterion("staff_post is not null");
            return (Criteria) this;
        }

        public Criteria andStaffPostEqualTo(String value) {
            addCriterion("staff_post =", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostNotEqualTo(String value) {
            addCriterion("staff_post <>", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostGreaterThan(String value) {
            addCriterion("staff_post >", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostGreaterThanOrEqualTo(String value) {
            addCriterion("staff_post >=", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostLessThan(String value) {
            addCriterion("staff_post <", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostLessThanOrEqualTo(String value) {
            addCriterion("staff_post <=", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostLike(String value) {
            addCriterion("staff_post like", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostNotLike(String value) {
            addCriterion("staff_post not like", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostIn(List<String> values) {
            addCriterion("staff_post in", values, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostNotIn(List<String> values) {
            addCriterion("staff_post not in", values, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostBetween(String value1, String value2) {
            addCriterion("staff_post between", value1, value2, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostNotBetween(String value1, String value2) {
            addCriterion("staff_post not between", value1, value2, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneIsNull() {
            addCriterion("staff_mail_phone is null");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneIsNotNull() {
            addCriterion("staff_mail_phone is not null");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneEqualTo(String value) {
            addCriterion("staff_mail_phone =", value, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneNotEqualTo(String value) {
            addCriterion("staff_mail_phone <>", value, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneGreaterThan(String value) {
            addCriterion("staff_mail_phone >", value, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("staff_mail_phone >=", value, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneLessThan(String value) {
            addCriterion("staff_mail_phone <", value, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneLessThanOrEqualTo(String value) {
            addCriterion("staff_mail_phone <=", value, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneLike(String value) {
            addCriterion("staff_mail_phone like", value, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneNotLike(String value) {
            addCriterion("staff_mail_phone not like", value, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneIn(List<String> values) {
            addCriterion("staff_mail_phone in", values, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneNotIn(List<String> values) {
            addCriterion("staff_mail_phone not in", values, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneBetween(String value1, String value2) {
            addCriterion("staff_mail_phone between", value1, value2, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailPhoneNotBetween(String value1, String value2) {
            addCriterion("staff_mail_phone not between", value1, value2, "staffMailPhone");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailIsNull() {
            addCriterion("staff_mail_email is null");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailIsNotNull() {
            addCriterion("staff_mail_email is not null");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailEqualTo(String value) {
            addCriterion("staff_mail_email =", value, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailNotEqualTo(String value) {
            addCriterion("staff_mail_email <>", value, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailGreaterThan(String value) {
            addCriterion("staff_mail_email >", value, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailGreaterThanOrEqualTo(String value) {
            addCriterion("staff_mail_email >=", value, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailLessThan(String value) {
            addCriterion("staff_mail_email <", value, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailLessThanOrEqualTo(String value) {
            addCriterion("staff_mail_email <=", value, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailLike(String value) {
            addCriterion("staff_mail_email like", value, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailNotLike(String value) {
            addCriterion("staff_mail_email not like", value, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailIn(List<String> values) {
            addCriterion("staff_mail_email in", values, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailNotIn(List<String> values) {
            addCriterion("staff_mail_email not in", values, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailBetween(String value1, String value2) {
            addCriterion("staff_mail_email between", value1, value2, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailEmailNotBetween(String value1, String value2) {
            addCriterion("staff_mail_email not between", value1, value2, "staffMailEmail");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrIsNull() {
            addCriterion("staff_mail_addr is null");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrIsNotNull() {
            addCriterion("staff_mail_addr is not null");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrEqualTo(String value) {
            addCriterion("staff_mail_addr =", value, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrNotEqualTo(String value) {
            addCriterion("staff_mail_addr <>", value, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrGreaterThan(String value) {
            addCriterion("staff_mail_addr >", value, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrGreaterThanOrEqualTo(String value) {
            addCriterion("staff_mail_addr >=", value, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrLessThan(String value) {
            addCriterion("staff_mail_addr <", value, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrLessThanOrEqualTo(String value) {
            addCriterion("staff_mail_addr <=", value, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrLike(String value) {
            addCriterion("staff_mail_addr like", value, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrNotLike(String value) {
            addCriterion("staff_mail_addr not like", value, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrIn(List<String> values) {
            addCriterion("staff_mail_addr in", values, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrNotIn(List<String> values) {
            addCriterion("staff_mail_addr not in", values, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrBetween(String value1, String value2) {
            addCriterion("staff_mail_addr between", value1, value2, "staffMailAddr");
            return (Criteria) this;
        }

        public Criteria andStaffMailAddrNotBetween(String value1, String value2) {
            addCriterion("staff_mail_addr not between", value1, value2, "staffMailAddr");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}